<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<ui:param name="tableBean" value="#{commonContentViewBean}" />
	<h:form>
	<p:dataTable var="sort" value="#{tableBean.bbsSortEntitys}"  >
	<f:facet name=”header”>
	 <p:commandButton 
			title="保存" 
			onstart="btnAction('#{commonContentViewBean.id}','新建板块分类','600','500','icons/cog_add.png','add','bbs-manager-scene','bbs-add-sort');"
			onclick="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/add.png" 
			value="保存" 
			style="margin:5px;">
		</p:commandButton>	
		 <p:commandButton 
			title="编辑" 
			onstart="btnAction('#{commonContentViewBean.id}','编辑板块分类','600','500','icons/cog_add.png','edit','bbs-manager-scene','bbs-edit-sort');"
			onclick="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/add.png" 
			value="保存" 
			style="margin:5px;">
		</p:commandButton>		
		<p:commandButton
					actionListener="#{bbsSortAction.delete}"
					onstart="if(confirm('确认要删除吗？')){return true;}else{return false;}"
					update="#{contentViewBean.id}_contentForm"
					title="删除内容" image="ui-icon-disk" value="删除">
					<h:inputHidden value="#{commonContentViewBean.id}" />
				</p:commandButton>			
	</f:facet>
	</p:dataTable>
	</h:form>
</ui:composition>
